/**
 * @description：请求配置
 */
export const ResultConfig = {
  SUCCESS: 200, // 成功
  ERROR: 500,
  OVERDUE: 401,
  TIMEOUT: 30000,
  TYPE: 'success',
  USER_ERROR: 8888
};

/**
 * @description：请求方法
 */
export const RequestConfig = {
  GET: 'GET',
  POST: 'POST',
  PATCH: 'PATCH',
  PUT: 'PUT',
  DELETE: 'DELETE'
};

/**
 * @description：常用的contentTyp类型
 */
export const ContentTypeConfig = {
  // json
  JSON: 'application/json;charset=UTF-8',
  // text
  TEXT: 'text/plain;charset=UTF-8',
  // form-data 一般配合qs
  FORM_URLENCODED: 'application/x-www-form-urlencoded;charset=UTF-8',
  // form-data 上传
  FORM_DATA: 'multipart/form-data;charset=UTF-8'
};
